﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DentScan2.WebApp.Handlers
{
    public partial class fImage : Classes.BaseForm
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            Response.Clear();
            if (Request.QueryString["imgId"] != null)
            {
                byte[] img = dl.Photos.First(p => p.PhotoId == Guid.Parse(Request.QueryString["imgId"])).Photo1.ToArray();
                Response.BinaryWrite(img);
            }
            Response.End();
        }
    }
}